//
//  LableAndImageCollectionViewCell.m
//  14-HomeWork
//
//  Created by dllo on 16/8/2.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LableAndImageCollectionViewCell.h"
@interface LableAndImageCollectionViewCell ()
@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *detailabel;
@end
@implementation LableAndImageCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _imageView = [[UIImageView alloc] initWithFrame:self.bounds];
        _imageView.image = [UIImage imageNamed:@"jiaju-1"];
        _imageView.alpha = 1;
        [self addSubview:_imageView];
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, frame.size.width, CGRectGetHeight(frame) / 4)];
        _titleLabel.text = @"礼物";
        _titleLabel.font = [UIFont systemFontOfSize:20];
        [self addSubview:_titleLabel];
        _detailabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10 + CGRectGetHeight(frame) / 4, frame.size.width, CGRectGetHeight(frame) * 2 / 4)];
        _detailabel.text = @"专治送礼困难症";
        _detailabel.textColor = [UIColor colorWithRed:0.76 green:0.76 blue:0.76 alpha:1.00];
        [self addSubview:_detailabel];
    }
    return self;
}
@end
